// src/main.js
import {
    createApp
} from 'vue';
import App from './App.vue';
import router from './router'; // ✅ 确保引入了 router
import store from './store'; // 可选，如果你用了 Vuex
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


import VMdEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';

import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';

import Prism from 'prismjs';
import 'prismjs/themes/prism.css';

VMdEditor.use(vuepressTheme, { Prism });

const app = createApp(App);

app.use(VMdEditor);
app.use(ElementPlus)
app.use(router); // ✅ 确保挂载了 router
app.use(store); // 如果你使用 Vuex
app.mount('#app');